package org.ariadne_eu.hcifetcher.rest;


import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;


@Path("/entries/blog")
public class Blog {

	//@Path("/")
	@GET
	@Produces("application/json")
	public String getBlogsBySet(@QueryParam("set") String set, @QueryParam("author") String author, @QueryParam("size") String size) {
		int intsize;
		try{
			intsize = Integer.parseInt(size);
		}
		catch(NumberFormatException e){
			intsize = 1000;
		}
		return RestUtils.getInstance().getEntries("Blog",set,author,intsize);
	}	
}
